package com.yxym.homework04;

public class TestEmployee {
    public static void main(String[] args) {
        Worker worker = new Worker("小红",20000.0,1.0);
        worker.printSalary();
        Teacher teacher = new Teacher("小明",30000.0,1.2,100.0,200);
        teacher.classPay();
        teacher.printSalary();
        Scientist scientist = new Scientist("王院长",50000.0,1.3);
        scientist.annualBonus();
        scientist.printSalary();
    }
}
